package com.huike.web.controller.clues;

import com.huike.clues.domain.dto.ClueTrackDto;
import com.huike.clues.service.ITbClueService;
import com.huike.common.core.domain.AjaxResult;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/clues")
public class CluesTrackController {
    @Autowired(required = false)
    private ITbClueService iTbClueService;

    /**
     * 新增线索跟进记录
     * @param clueTrackDto
     * @return
     */
    @PostMapping("/record")
    public AjaxResult saveClueTrack(@RequestBody ClueTrackDto clueTrackDto) {
        System.out.println("参数："+clueTrackDto);
        return iTbClueService.saveClueTrack(clueTrackDto);
    }

}
